// Person.h
#include <iostream>
#include <string>
using namespace std;

class Person
{
public:
    Person() : name("lc") {}
    ~Person() {}
    void setName(const string &name) { cout << "Person::setName()" << endl; }
    string getName() const { return name; }
    void setAge(int age) {}
    int getAge() const {}
    
protected:
    string name;
private:
    int age;
};

class Student : public Person
{
public:
    Student() : id(1001) { name = "zjm"; }
    ~Student() {}
    void setId(int id) {}
    int getId() const { return id; }

private:
    int id;
};

void tempFunc(Person p)
{
    cout << "name: " << p.getName() << endl;
}

int main()
{
    Student stu;
    Person per;
    tempFunc(stu);
    tempFunc(per);

    return 0;
}